<%--
  Created by IntelliJ IDEA.
  User: fujia
  Date: 2016/5/25
  Time: 9:23
  To change this template use File | Settings | File Templates.
--%>

<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="s" uri="/struts-tags" %>

<!doctype html>
<!--[if lt IE 7]> <html class="lt-ie9 lt-ie8 lt-ie7" lang="en-US"> <![endif]-->
<!--[if IE 7]>    <html class="lt-ie9 lt-ie8" lang="en-US"> <![endif]-->
<!--[if IE 8]>    <html class="lt-ie9" lang="en-US"> <![endif]-->
<!--[if gt IE 8]><!--> <html lang="en-US"> <!--<![endif]-->
<%@include file="common/head.jsp"%>

<body>
    
    <%@include file="common/nav.jsp"%>
    
    <!-- Start of Page Container -->
    <div class="page-container">
        <div class="container">
            <div class="row">
    
                <!-- start of page content -->
                <div class="span8 main-listing">

                    <s:if test="#session.articles != null">

                        <s:iterator value="#session.articles" status="article">
                            <article class="format-image type-post hentry clearfix">
                                <header class="clearfix">
                                    <h3 class="post-title">
                                        <a href="single.action?article=<s:property value="articleId" />"><s:property value="title" /></a>
                                    </h3>
                                    <div class="post-meta clearfix">
                                        <span class="date"><s:property value="dateAdded" /></span>
                                        <span class="category"><a href="#" title="View all posts in Server &amp; Database"><s:property value="blockName" /></a></span>
                                        <span class="comments"><a href="#" title="Comment on Integrating WordPress with Your Website"><span><s:property value="commentNumber" /></span><b>条评论</b></a></span>
                                        <span class="like-count"><s:property value="praiseNumber" /></span>
                                    </div>
                                </header>
                                <a href="#" title="Using Images"><img width="770" height="501" src="/resources/catalog/images/temp/living-room-770x501.jpg" class="attachment-std-thumbnail wp-post-image" alt="photo"></a>
                                <p>
                                    <s:property value="text" />
                                    <a class="readmore-link" href="single.action?article=<s:property value="articleId" />"><b> . . . Read more</b></a>
                                </p>
                            </article>
                        </s:iterator>

                    </s:if>
                    <s:else>
                        <blockquote>
                            <h2>期待您发表优秀的文章！</h2>
                        </blockquote>
                    </s:else>
    
                </div>
                <!-- end of page content -->
    
    
                <%@include file="common/aside.jsp"%>
            </div>
        </div>
    </div>
    <!-- End of Page Container -->
    
    <%@include file="common/foot.jsp"%>
    
    <a href="#top" id="scroll-top"></a>
    
    <%@include file="common/script.jsp"%>
    
</body>
</html>